require("Common/define");
require("Common/functions");
require("View/LoginPanel");
require("View/RegistPanel");
GameRoot={};
local this=GameRoot;
local transform;
function GameRoot.OnAwake( )
	print("hello luaFramework")
        -- public void LoadPrefab(string abName, string[] assetNames, LuaFunction func) {
        -- local  res = LuaFramework.LuaHelper.GetResManager()
	--   resMgr:LoadPrefab("player",{"player"},this.loadOk);
	LoginPanel.new();
	
end

-- function GameRoot.loadOk(objs)
-- 	local prefab = objs[0];

-- 	local go=newObject(prefab);
-- 	transform=go.transform;
-- 	print(prefab);

-- 	UpdateBeat:Add(this.Update)
-- end
-- function GameRoot.Update()
-- 	if(transform)then
-- 	   local x=  Input.GetAxis("Horizontal");
--        local z= Input.GetAxis("Vertical");
--        local dir = Vector3.forward * z + Vector3.right * x;
--        transform:Translate(dir * Time.deltaTime);
--     end
-- end